package com.zx.mes.upms.hyl.biz;

import org.springframework.stereotype.Service;
import com.zx.mes.upms.hyl.entity.User;
import com.zx.mes.upms.hyl.mapper.UserMapper;
import com.zx.mes.hyl.common.biz.BaseBiz;

/**
 * 
 *
 * @author hyl
 * @email 632105841@qq.com
 * @date 2018-04-08 15:10:44
 */
@Service
public class UserBiz extends BaseBiz<UserMapper,User> {

    public User getRoleAndResourceByUserId(String id){
        return mapper.getRoleAndResourceByUserId(id);
    }

    public User getRoleByUserId(String id){
        return mapper.getRoleByUserId(id);
    }

    public User getUserAndRoleAndMenuByUserId(String id){
        return mapper.getUserAndRoleAndMenuByUserId(id);
    }
}